package com.ruoyi.cloud.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.cloud.domain.TbCloudCar;
import com.ruoyi.cloud.mapper.TbCloudCarMapper;
import com.ruoyi.cloud.service.ITbCloudCarService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 冷链车数据Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-11-29
 */
@Service
public class TbCloudCarServiceImpl extends ServiceImpl<TbCloudCarMapper, TbCloudCar> implements ITbCloudCarService
{
    @Autowired
    private TbCloudCarMapper tbCloudCarMapper;

    /**
     * 查询冷链车数据
     * 
     * @param id 冷链车数据主键
     * @return 冷链车数据
     */
    @Override
    public TbCloudCar selectTbCloudCarById(Long id)
    {
        return tbCloudCarMapper.selectTbCloudCarById(id);
    }

    /**
     * 查询冷链车数据列表
     * 
     * @param tbCloudCar 冷链车数据
     * @return 冷链车数据
     */
    @Override
    public List<TbCloudCar> selectTbCloudCarList(TbCloudCar tbCloudCar)
    {
        return tbCloudCarMapper.selectTbCloudCarList(tbCloudCar);
    }

    /**
     * 新增冷链车数据
     * 
     * @param tbCloudCar 冷链车数据
     * @return 结果
     */
    @Override
    public int insertTbCloudCar(TbCloudCar tbCloudCar)
    {
        return tbCloudCarMapper.insertTbCloudCar(tbCloudCar);
    }

    /**
     * 修改冷链车数据
     * 
     * @param tbCloudCar 冷链车数据
     * @return 结果
     */
    @Override
    public int updateTbCloudCar(TbCloudCar tbCloudCar)
    {
        return tbCloudCarMapper.updateTbCloudCar(tbCloudCar);
    }

    /**
     * 批量删除冷链车数据
     * 
     * @param ids 需要删除的冷链车数据主键
     * @return 结果
     */
    @Override
    public int deleteTbCloudCarByIds(Long[] ids)
    {
        return tbCloudCarMapper.deleteTbCloudCarByIds(ids);
    }

    /**
     * 删除冷链车数据信息
     * 
     * @param id 冷链车数据主键
     * @return 结果
     */
    @Override
    public int deleteTbCloudCarById(Long id)
    {
        return tbCloudCarMapper.deleteTbCloudCarById(id);
    }
}
